package Atm01;

import javax.swing.*;
import java.awt.*;

/**
 * 存款界面
 */
public class SavePanel extends JPanel {

    private JLabel  inputmoneyLabel = new JLabel("存款金额：");
    private JTextField inputmoneyField=new JTextField();
    private ImageIcon sureImg= new ImageIcon("Images/buttonSure.jpg");

    private Font font = new Font("黑体",Font.BOLD,30);

    private JButton sureBth= new JButton(sureImg);
    public SavePanel(){
        this.setLayout(null);

        sureBth.setBounds(580,300,150,50);

       inputmoneyField.setBounds(400,200,330,50);
        inputmoneyField.setFont(font);

        inputmoneyLabel.setBounds(250,200,400,50);
         inputmoneyLabel.setFont(font);

           this.add(inputmoneyField);
           this.add(inputmoneyLabel);
           this.add(sureBth);


        this.setOpaque(false);


    }



}
